/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoopp.qcoinpay;

import android.app.Activity;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup.LayoutParams;
import android.widget.ImageView;
import android.widget.ImageView.ScaleType;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;
import android.widget.RelativeLayout;
import android.widget.RelativeLayout.LayoutParams;
import android.widget.ScrollView;
import android.widget.TextView;

public final class ae extends LinearLayout {
    private Activity a;
    private TextView b;
    private TextView c;
    private TextView d;
    private TextView e;
    private ImageView f;
    private LinearLayout g;
    private bi h;

    public ae(Activity paramActivity, String paramString1, String paramString2, String paramString3) {
        super(paramActivity);
        this.a = paramActivity;
        this.h = bi.a(this.a);
        paramActivity = cz.a(this.a, 10.0F);
        int i = cz.a(this.a, 10.0F);
        setOrientation(1);
        this.h.a(this, "bg_cover.9.png");
        setPadding(i, i, i, i);
        Object localObject1 = new RelativeLayout(this.a);
        int j = cz.a(this.a, 18.5F);
        this.b = new TextView(this.a);
        this.b.setSingleLine();
        this.b.setTextColor(-13421773);
        this.b.setTextSize(16.0F);
        this.b.setText(a.a(b.u));
        RelativeLayout.LayoutParams localLayoutParams;
        (localLayoutParams = new RelativeLayout.LayoutParams(-1, -2)).rightMargin = j;
        ((RelativeLayout) localObject1).addView(this.b, localLayoutParams);
        this.f = new ImageView(this.a);
        this.h.a(this.f, "img_close.png");
        (localObject2 = new RelativeLayout.LayoutParams(j, j)).addRule(11, -1);
        ((RelativeLayout) localObject1).addView(this.f, (ViewGroup.LayoutParams) localObject2);
        addView((View) localObject1);
        (localObject1 = new ImageView(this.a)).setScaleType(ImageView.ScaleType.FIT_XY);
        this.h.a((View) localObject1, "img_line.png");
        (localObject2 = new LinearLayout.LayoutParams(-1, -2)).topMargin = paramActivity;
        addView((View) localObject1, (ViewGroup.LayoutParams) localObject2);
        this.g = new LinearLayout(this.a);
        localObject1 = new ScrollView(this.a);
        this.c = new TextView(this.a);
        this.c.setTextColor(-7829368);
        this.c.setTextSize(14.0F);
        ((ScrollView) localObject1).addView(this.c);
        if ((paramString1 != null) && (!("".equals(paramString1)))) {
            localObject2 = new ImageView(this.a);
            this.h.a((View) localObject2, paramString1);
            paramString1 = cz.a(this.a, 30.5F);
            paramString1 = new LinearLayout.LayoutParams(paramString1, paramString1);
            this.g.addView((View) localObject2, paramString1);
        }
        Object localObject2 = new LinearLayout.LayoutParams(-2, -2);
        this.g.addView((View) localObject1, (ViewGroup.LayoutParams) localObject2);
        (paramString1 = new LinearLayout.LayoutParams(-2, -2)).topMargin = paramActivity;
        paramString1.leftMargin = paramActivity;
        paramString1.rightMargin = paramActivity;
        paramString1.gravity = 1;
        addView(this.g, paramString1);
        this.d = new TextView(this.a);
        this.d.setGravity(17);
        this.d.setTextColor(-13421773);
        this.d.setTextSize(14.0F);
        this.d.setText(paramString2);
        this.h.a(this.d, "bg_coverbtn_nor.png", "bg_coverbtn_press.png", "bg_coverbtn_nor.png");
        this.e = new TextView(this.a);
        this.e.setGravity(17);
        this.e.setTextColor(-13421773);
        this.e.setTextSize(14.0F);
        this.e.setText(paramString3);
        this.h.a(this.e, "bg_coverbtn_nor.png", "bg_coverbtn_press.png", "bg_coverbtn_nor.png");
        if ((paramString2 != null) && (!("".equals(paramString2))) && (paramString3 != null)
                && (!("".equals(paramString3)))) {
            paramString1 = new LinearLayout(this.a);
            (paramString2 = new LinearLayout.LayoutParams(-1, cz.a(this.a, 39.5F))).weight = 1.0F;
            paramString2.rightMargin = paramActivity;
            paramString1.addView(this.d, paramString2);
            (paramString2 = new LinearLayout.LayoutParams(-1, cz.a(this.a, 39.5F))).weight = 1.0F;
            paramString2.leftMargin = paramActivity;
            paramString1.addView(this.e, paramString2);
            (paramString2 = new LinearLayout.LayoutParams(-1, -1)).topMargin = paramActivity;
            addView(paramString1, paramString2);
            return;
        }
        if ((paramString2 != null) && (!("".equals(paramString2)))) {
            (paramString1 = new LinearLayout.LayoutParams(cz.a(this.a, 105.5F), cz.a(this.a, 39.5F))).gravity = 17;
            paramString1.topMargin = paramActivity;
            addView(this.d, paramString1);
            return;
        }
        if ((paramString3 == null) || ("".equals(paramString3)))
            return;
        (paramString1 = new LinearLayout.LayoutParams(cz.a(this.a, 105.5F), cz.a(this.a, 39.5F))).gravity = 17;
        paramString1.topMargin = paramActivity;
        addView(this.e, paramString1);
    }

    public final void a(String paramString) {
        this.b.setText(paramString);
    }

    public final void b(String paramString) {
        this.c.setText(paramString);
    }

    public final void a(View.OnClickListener paramOnClickListener) {
        this.d.setOnClickListener(paramOnClickListener);
    }

    public final void b(View.OnClickListener paramOnClickListener) {
        this.e.setOnClickListener(paramOnClickListener);
    }

    public final void c(View.OnClickListener paramOnClickListener) {
        this.f.setOnClickListener(paramOnClickListener);
    }
}